<template>
  <div class="dashboard-container">
    <!-- <div class="dashboard-text">name: {{ name }}</div> -->
    <el-row :gutter="20">
      <el-col :span="12">
        <el-card>
          <BarChart />
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card>
          <PieChart />
        </el-card>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12">
        <el-card>
          <StackedLine />
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card>
          <Calendar /></el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Calendar from './component/Calendar.vue'
import BarChart from './component/BarChart.vue'
import PieChart from './component/PieChart.vue'
import StackedLine from './component/StackedLine.vue'

// import { mapGetters } from 'vuex'

export default {
  // name: 'Dashboard',
  components: {
    BarChart,
    PieChart,
    StackedLine,
    Calendar
  },
  data() {
    return {
      value: new Date()
    }
  }
  // computed: {
  //   ...mapGetters([
  //     'name'
  //   ])
  // }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

 .el-col{
  margin-bottom: 15px;
}

</style>
